<?php
// store student_id and student_number from 'ready_score_form.html.php'
$_SESSION['student_id'] = $student_id;

// get student's information based on student_number
$sql = "SELECT ho_ten, ngay_sinh, he_dao_tao, nganh_hoc, khoa_hoc
		    FROM sinh_vien WHERE mssv = '$student_id'";
$result = mysqli_query($link, $sql);

if(!$result)
{
	$error = 'Error fetching student information to display';
	include '/includes/error.html.php';
	exit();
}
$row = mysqli_fetch_array($result);

// store personal information
$_SESSION['student_name'] = $row['ho_ten'];
$_SESSION['birthday'] = $row['ngay_sinh'];
$_SESSION['edu_system'] = $row['he_dao_tao'];
$_SESSION['branch'] = $row['nganh_hoc'];
$_SESSION['course'] = $row['khoa_hoc'];
?>